package com.aacar.dao.impl;

import java.util.List;

import com.aacar.dto.MemberOrderListDto;
import com.aacar.utils.Page;
import com.aacar.vo.MemberOrderDetailVo;
import com.aacar.vo.MemberOrderListVo;
import org.springframework.stereotype.Repository;

import com.aacar.dao.MemberOrderDao;
import com.aacar.dao.base.CommonBaseDao;
import com.aacar.entity.Order;

@Repository("MemberOrderDao")
public class MemberOrderDaoImpl extends CommonBaseDao<Order, String> implements MemberOrderDao {

	private static final String nameSpace = "com.aacar.dao.MemberOrderDao.";


	@Override
	public Page getMemberOrderListCount(MemberOrderListDto memberOrderListDto) {
		return this.getSqlSession().selectOne(nameSpace.concat("getMemberOrderListCount"), memberOrderListDto);
	}

	@Override
	public List<MemberOrderListVo> getMemberOrderListPage(MemberOrderListDto memberOrderListDto) {
		return this.getSqlSession().selectList(nameSpace.concat("getMemberOrderListPage"), memberOrderListDto);
	}

	@Override
	public MemberOrderDetailVo getMemberOrderDetail(String orderNo) {
		return this.getSqlSession().selectOne(nameSpace.concat("getMemberOrderDetail"), orderNo);
	}

	
}
